package com.sdry.mapper.zc;

import java.util.List;

import com.sdry.model.zc.ZcNumberedEntity;
import com.sdry.model.zc.ZcProductInspectionEntity;
import com.sdry.model.zc.ZcProductTestEntity;
import com.sdry.model.zc.ZcTestEntity;

/**
 * 
 * @ClassName:    ZcNumberedMapper   
 * @Description:  
 * @Author:       zc   
 * @CreateDate:   2018年10月9日 下午5:06:19   
 * @Version:      v1.0
 */
public interface ZcNumberedMapper {
	/**
	 * 查询产品报检单列表
	 * @return
	 */
	public List<ZcProductInspectionEntity> selectProductInspectionList();
	/**
	 * 通过报检单号查询报检单详情
	 * @param keyword
	 * @return
	 */
	public ZcProductInspectionEntity selectProductInspection(String keyword);
	/**
	 * 保存产品质检单信息
	 * @param zcProductTestEntity
	 * @return
	 */
	public int insertProductTest(ZcProductTestEntity zcProductTestEntity);
	/**
	 * 保存数点结果
	 * @param zcNumberedEntity
	 * @return
	 */
	public int insertNumbered(ZcNumberedEntity zcNumberedEntity);
	/**
	 * 通过组件条码查询质检单信息
	 * @param code
	 * @return
	 */
	public ZcProductTestEntity selectProductTest(String code);
	/**
	 * 查询这个产品是否已经数点
	 * @param ptCode
	 * @return
	 */
	public int countNumberByCode(String ptCode);
	/**
	 * 查询报检单已经数点产品数
	 * @param ptCode
	 * @return
	 */
	public int countProductTestByPiNumber(String piNumber);
	/**
	 * 解绑台车
	 * @param piNumber
	 * @return
	 */
	public int unbundle(String piNumber);
}
